package main

import (
	"cdzhmc.com/go-mc/gateway"
	"fmt"
	"net/http"
)

func main() {
	r := gateway.NewRouter()
	r.Get("/", func(w http.ResponseWriter, r *http.Request) {
		_,err:=w.Write([]byte("welcome"))
		if err != nil {
			fmt.Printf("error %s",err)
		}
	})
	err := http.ListenAndServe(":3000", r)
	if err != nil {
		fmt.Printf("error %s",err)
	}
}
